#include <mpi.h>
#include <stdio.h>

#include "utils.h"


int add_matrix(struct matrix_t* a, struct matrix_t* b);

int main(int argc, char** argv)
{
	struct MPI_Info info;
	struct matrix_t* mat;
	struct matrix_t* smat;
	long ans;

	MPI_Init(&argc, &argv);

	get_mpi_info(&info);
	read_matrix("A.txt", &mat);
	read_matrix("B.txt", &smat);

	mat_prod(mat, smat, 1, 1, &ans);
	printf("ans=%ld\n", ans);

	MPI_Barrier(MPI_COMM_WORLD);
	MPI_Finalize();

	return 0;
}
